package com.sky.mapper;

import com.sky.entity.SetmealDish;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface SetmealDishMapper {

    Long[] getsetmealIdsByIds(Long[] ids);

    void insert(SetmealDish setmealDish);
@Select("select setmeal_dish.dish_id from setmeal_dish where setmeal_id=#{setmeal_id}")
    List<Long> findDishIdBySetmealId(Long setmeal_id);

    void deleteDishIdBySetmealId(Long[] ids);
    @Select("select * from setmeal_dish where setmeal_id=#{setmeal_id}")
    List<SetmealDish> findBySetmealId(Long setmeal_id);
}
